From: Keir Fraser Date: Mon, 2 Mar 2009 10:31:16 +0000 (+0000) Subject: acm: Return a valid buffer X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13995^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=69e8ef73148b0b31d32284e40837ac50bbdbc013;p=xen.git acm: Return a valid buffer This patch reverts a previous patch trying to fix a memory, even though I don't think there was any. Now return a valid buffer. All functions calling this function do free the buffer. Signed-off-by: Stefan Berger --- diff --git a/tools/python/xen/lowlevel/acm/acm.c b/tools/python/xen/lowlevel/acm/acm.c index d426420d70..662c7f72d4 100644 --- a/tools/python/xen/lowlevel/acm/acm.c +++ b/tools/python/xen/lowlevel/acm/acm.c @@ -68,8 +68,6 @@ static void *__getssid(int domid, uint32_t *buflen) goto out2; } else { *buflen = SSID_BUFFER_SIZE; - free(buf); - buf = NULL; goto out2; } out2: